import { connect } from "../redux-8";

const userSelector = state => {
    return {
        user: state.user
    }
}
const userDispatch = dispatch => {
    return {
        updateUser: attrs => dispatch({type: 'updateUser', payload: attrs})
    }
}

export const  connectToUser = connect(userSelector, userDispatch);
